package com.heyqing.topic.AddDigits_0258;

/**
 * ClassName:AddDigits
 * Package:com.heyqing.topic.AddDigits_0258
 * Description:
 *
 * @Date:2024/9/25
 * @Author:Heyqing
 */
public class AddDigits {
    public int addDigits(int num) {
        return (num - 1) % 9 + 1;
    }
}
